"""
根据传入的名称以及config构建merge 处理类
"""
from merge.base_merge import BaseMerge


class MergeFactory:
    @classmethod
    def create_service(cls, config):
        service = None
        if config["name"] == "base_merge":
            service = BaseMerge(config)

        if not service:
            print("init merge service %s failed " % config["name"])
        return service

